public class Idle : State{
    public override void Handle(Context context){
        Console.WriteLine("Idle state");
        //  每个状态处理完后，根据条件判断是否需要切换状态  
        if(context.condition == 1){
            context.ChangeState(new Walk());
        }else if(context.condition == 2){
            context.ChangeState(new Run());
        }
    }
}